package com.woniuxy.entity;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Agent implements Serializable {
    private int id;
    private String name;
    private int levelid;
    private String tel;
    private String id_no;
    private String bank_no;
    private int balance;
    private double total;
    private int real_status;
    private int ser_status;
    private String endtime;
    private String regtime;
    private int flag;
    private int reference;
    private String levelname;
    private double profit;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getLevelid() {
        return levelid;
    }

    public void setLevelid(int levelid) {
        this.levelid = levelid;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getId_no() {
        return id_no;
    }

    public void setId_no(String id_no) {
        this.id_no = id_no;
    }

    public String getBank_no() {
        return bank_no;
    }

    public void setBank_no(String bank_no) {
        this.bank_no = bank_no;
    }

    public int getBalance() {
        return balance;
    }

    public void setBalance(int balance) {
        this.balance = balance;
    }

    public double getTotal() {
        return total;
    }

    public void setTotal(double total) {
        this.total = total;
    }

    public int getReal_status() {
        return real_status;
    }

    public void setReal_status(int real_status) {
        this.real_status = real_status;
    }

    public int getSer_status() {
        return ser_status;
    }

    public void setSer_status(int ser_status) {
        this.ser_status = ser_status;
    }

    public String getEndtime() {
        return endtime;
    }

    public void setEndtime(Date endtime) {
        this.endtime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(endtime);
    }

    public String getRegtime() {
        return regtime;
    }

    public void setRegtime(Date regtime) {
        this.regtime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(regtime);
    }

    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }

    public int getReference() {
        return reference;
    }

    public void setReference(int reference) {
        this.reference = reference;
    }

    public String getLevelname() {
        return levelname;
    }

    public void setLevelname(String levelname) {
        this.levelname = levelname;
    }

    public double getProfit() {
        return profit;
    }

    public void setProfit(double profit) {
        this.profit = profit;
    }

    @Override
    public String toString() {
        return "Agent{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", levelid=" + levelid +
                ", tel='" + tel + '\'' +
                ", id_no='" + id_no + '\'' +
                ", bank_no='" + bank_no + '\'' +
                ", balance=" + balance +
                ", total=" + total +
                ", real_status=" + real_status +
                ", ser_status=" + ser_status +
                ", endtime='" + endtime + '\'' +
                ", regtime='" + regtime + '\'' +
                ", flag=" + flag +
                ", reference=" + reference +
                ", levelname='" + levelname + '\'' +
                ", profit=" + profit +
                '}';
    }
}
